package cn.yoyo.mapper;

import cn.yoyo.entity.SysUser;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    public List<SysUser> findAll(Map<String, Object> map);

    public int freeze(Map<String, Object> map);

    public SysUser findUserByAccount(String account);

    public int addUser(SysUser user);

    public int updatePassword(Map<String, Object> map);

    public int updateImg(Map<String, Object> map);

    public int updateInfo(Map<String, Object> map);

    public int addAdm(SysUser user);

    public int resetPassword(Map<String, Object> map);

    public int findById(Integer id);

    public int getTotal();
}
